home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: thads@csn.net (Thad Smith)
- Newsgroups: comp.std.c,comp.lang.c.moderated
- Subject: Re: Integral promotion.
- Date: 16 Feb 1996 09:40:43 -0600
- Organization: T3 Systems
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4g28hr$qko@solutions.solon.com>
- References: <4fstj7$2l6@solutions.solon.com> <4fu835$9de@solutions.solon.com>
- <4fvgrm$dv9@solutions.solon.com>
- Reply-To: ThadSmith@acm.org
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4fvgrm$dv9@solutions.solon.com>, msb@sq.com wrote:
- >Oh dear, I have to correct Chris Torek (torek@bsdi.com).
-
- >Thus even in ANSI C, if this function is called this way:
- >
- > extern short p, q, r, test(short,short);
- > r = test(p,q);
- >
- >the values from p and q are still converted from short to int and back
- >to short.
-
- I find nothing in the Standard that states that the arguments undergo
- integral promotions before being assigned to the function parameters.
-
- Thad
-